package com.prs.crm.domain.hr;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

@Entity
@Table(name="hr_payroll")
public class Payroll extends BaseEntity{
	
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	private String title;
	private String state;
	@OneToMany(fetch=FetchType.LAZY,mappedBy="payroll")	
	private Set<PayrollBill> payrollBills;
	private Integer issueYear;
	private Integer issueMonth;
	private Double fullTime;
	@OneToMany(fetch=FetchType.LAZY,mappedBy="payroll")
	private Set<PayrollKpi> payrollKpis;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public void setPayrollBills(Set<PayrollBill> payrollBills) {
		this.payrollBills = payrollBills;
	}
	public Set<PayrollBill> getPayrollBills() {
		return payrollBills;
	}
	public Integer getIssueYear() {
		return issueYear;
	}
	public void setIssueYear(Integer issueYear) {
		this.issueYear = issueYear;
	}
	public Integer getIssueMonth() {
		return issueMonth;
	}
	public void setIssueMonth(Integer issueMonth) {
		this.issueMonth = issueMonth;
	}
	public void setFullTime(Double fullTime) {
		this.fullTime = fullTime;
	}
	public Double getFullTime() {
		return fullTime;
	}
	public void setPayrollKpis(Set<PayrollKpi> payrollKpis) {
		this.payrollKpis = payrollKpis;
	}
	public Set<PayrollKpi> getPayrollKpis() {
		return payrollKpis;
	}
}
